#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <fcntl.h>
#include <string.h>
#include <stdlib.h>
#include <string.h>
#define PORT_SERV 8888
#define BUFF_LEN  1024

void start_client()
{
    int s ;
    struct sockaddr_in server ,client;
    s = socket(AF_INET , SOCK_DGRAM , 0);

    memset(&server , 0 , sizeof( server  ));
    server.sin_family = AF_INET;
    server.sin_addr.s_addr = htonl(INADDR_ANY);
    server.sin_port = htons(PORT_SERV);

    char buffer[BUFF_LEN] = "up to test";
    struct sockaddr_in from;
    int len = sizeof(server);
    sendto( s, buffer, BUFF_LEN , 0, (struct sockaddr*)&server , &len );
    
    recvfrom(s , buffer , BUFF_LEN , 0 , (struct sockaddr*)&client ,&len);
    
    
    printf(" recved : %s\n", buffer);
}
